// 设备检测模块
import React from 'react'
import '../css/coretask.less';
import http from '../../../utils/http';

class EquipmentTest extends React.Component {
  
  // 初始化加载钩子
  equipmentTest = () => {
    http
        .get('/classin/find/deviceProbingUrl')
        .then(data => {
            window.location.href = data
            http
                .get('/classin/recode/deviceProbing')
                .then(data => {
                }, err => {
            })
        }, err => {
    })
}
  componentDidMount( ) {
  }
  render () {
    return (
        <div className="delposition">
          <div className="equipmentOut">
            <div className="novicetsakbg">
                <p className="labeClass">
                  新手任务
                </p>
            </div>
            <h3 className="labeTitle">
              设备检测
            </h3>
            <div className="equiloading">
              {/* <img src={require('../../../images/novice.png')} alt="aa" />   */}
            </div>
            <p className="equipdesc">
              初次使用，须进行全面的网络，声音和麦克风检测。
              以保证孩子能够正常按时上课，
              谢谢家长配合。
            </p>
            <button  className="btn btn-primary equipmentTest" onClick={this.equipmentTest}>开始检测</button>
          </div>
        </div>
    )
  }
}
export default EquipmentTest